<template>
  <div class="box">
    <div class="youhui" v-for="(v,i) in arrs" :key="i">
      <div class="sbox">
        <div class="left">
           <p>
            <span>{{v.title}}</span>
            <span>{{v.jg}}</span>
            <span></span>
          </p> 
          <p>{{v.manjian}}</p>
        </div>
        <div class="right">
          <p>{{v.mc}}</p>
          <p>App/百果园+小程序可用</p>
          <p>{{v.sj}}</p>
          <p>全场通用(部分特价商品不可使用);</p>
        </div>
      </div>
      
          <button>去使用</button>
    </div>
  </div>
</template>

<script>
import axios from "@/apis/api.js"
export default {
  data(){
    return{
      arrs:[]
    };
  },
  created(){
    axios("/data/list/youhui").then((ok)=>{
      console.log(ok.data.data);
        this.arrs=ok.data.data
    })
  }
}
</script>

<style scoped>
.box {
  background: rgb(220, 220, 220);
  width: 100%;
  min-height: 5rem;
  padding-top: 0.05rem;
}
.youhui{
    
    height: 1.4rem;
    background: white;
    border-radius: .1rem;
    margin: 0.08rem 0.1rem;

}
.sbox {
  width: 94.8%;
  height: 1rem;
  position: relative;
  border-bottom: 1px dashed rgba(128, 128, 128, 0.219);
}
.left {
    width: 1rem;
    height:.8rem;
  color: rgb(61, 170, 66);
  text-align: center;
  position: absolute;
  left: .1rem;
  top: .17rem;
}
.left p:nth-child(1) span:nth-child(2){
  font-size: 0.38rem;
  font-weight: 700;
}
.left p:nth-child(1) span {
  font-size: 0.16rem;
}
.right{
    font-size: .12rem;
    position: absolute;
    left: 1.2rem;
    top: .1rem;
}
.right p:nth-child(1){
    font-size: .14rem;
    font-weight: 700;
}
.right p:nth-child(2){
    font-size: .12rem;
    border: 1px solid rgb(61, 170, 66);
    color:rgb(61, 170, 66) ;
    width: 1.3rem;
    margin: .05rem 0;
}
.right p:nth-child(4){
    color: gray;
}
button{
    width: .6rem;
    border-radius: .2rem;
    outline: none;
    text-align: center;
    color: white;
    margin: .06rem 0 0 2.7rem;
    background:rgb(61, 170, 66) ;
    font-size: .14rem;
}
</style>